package com.iwhalecloud.citybrain.flow.platform.manager.application.service;

import com.iwhalecloud.citybrain.flow.platform.manager.domain.exception.EventCallSuspendException;
import org.flowable.task.service.impl.persistence.entity.TaskEntity;

/**
 * @author lilh
 * @date 2020/12/11 下午3:21
 */
public interface TaskCompletedPostProcessor {

    /**
     * 任务完成后置处理
     *
     * @param taskEntity 完成的任务
     */
    void process(TaskEntity taskEntity) throws EventCallSuspendException;

    /**
     * 获取描述信息
     *
     * @return 描述信息
     */
    String getDesc();
}
